package com.appoint.buss.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.appoint.buss.mapper.EpiparaChipInfoMapper;
import com.appoint.buss.domain.EpiparaChipInfo;
import com.appoint.buss.service.IEpiparaChipInfoService;

/**
 * chipInfoService业务层处理
 *
 * @author appoint
 * @date 2023-02-18
 */
@Service
public class EpiparaChipInfoServiceImpl implements IEpiparaChipInfoService
{
    @Autowired
    private EpiparaChipInfoMapper epiparaChipInfoMapper;

    /**
     * 查询chipInfo
     *
     * @param id chipInfo主键
     * @return chipInfo
     */
    @Override
    public EpiparaChipInfo selectEpiparaChipInfoById(Long id)
    {
        return epiparaChipInfoMapper.selectEpiparaChipInfoById(id);
    }

    /**
     * 查询chipInfo列表
     *
     * @param epiparaChipInfo chipInfo
     * @return chipInfo
     */
    @Override
    public List<EpiparaChipInfo> selectEpiparaChipInfoList(EpiparaChipInfo epiparaChipInfo)
    {
        return epiparaChipInfoMapper.selectEpiparaChipInfoList(epiparaChipInfo);
    }

    /**
     * 新增chipInfo
     *
     * @param epiparaChipInfo chipInfo
     * @return 结果
     */
    @Override
    public int insertEpiparaChipInfo(EpiparaChipInfo epiparaChipInfo)
    {
        return epiparaChipInfoMapper.insertEpiparaChipInfo(epiparaChipInfo);
    }

    /**
     * 修改chipInfo
     *
     * @param epiparaChipInfo chipInfo
     * @return 结果
     */
    @Override
    public int updateEpiparaChipInfo(EpiparaChipInfo epiparaChipInfo)
    {
        return epiparaChipInfoMapper.updateEpiparaChipInfo(epiparaChipInfo);
    }

    /**
     * 批量删除chipInfo
     *
     * @param ids 需要删除的chipInfo主键
     * @return 结果
     */
    @Override
    public int deleteEpiparaChipInfoByIds(Long[] ids)
    {
        return epiparaChipInfoMapper.deleteEpiparaChipInfoByIds(ids);
    }

    /**
     * 删除chipInfo信息
     *
     * @param id chipInfo主键
     * @return 结果
     */
    @Override
    public int deleteEpiparaChipInfoById(Long id)
    {
        return epiparaChipInfoMapper.deleteEpiparaChipInfoById(id);
    }
}
